(function() {
  var _base2 = document.createElement('SCRIPT');
  _base2.type = 'text/javascript';
  _base2.src = 'http://base2.googlecode.com/svn/version/1.0/base2-dom-fp.js';

  _base2.onload = function() {
    base2.DOM.bind(document);

    var _yui = document.createElement('SCRIPT');
    _yui.type = 'text/javascript';
    _yui.src = 'http://yui.yahooapis.com/combo?3.0.0pr1/build/yui/yui-min.js&3.0.0pr1/build/oop/oop-min.js&3.0.0pr1/build/event/event-min.js&3.0.0pr1/build/dom/dom-min.js&3.0.0pr1/build/node/node-min.js&3.0.0pr1/build/io/io-min.js';

    _yui.onload = function() {
      var _yandex = document.createElement('SCRIPT');
      _yandex.type = 'text/javascript';
      _yandex.src = 'http://serenitysu.googlecode.com/svn/trunk/bookmarklet/yandex.js';

      _yandex.onload = function() {
        document.body.removeChild(document.querySelector('div#loading'));
      }

      document.getElementsByTagName('head')[0].appendChild(_yandex);
    };

    document.getElementsByTagName('head')[0].appendChild(_yui);
  };

  document.getElementsByTagName('head')[0].appendChild(_base2);
})();